package com.huazhi.wzsnw.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Backup {
    private String tid;

    private String nameurl;

//    private String response;
    private String usertid;

    private Date backupdate;

    private String backupdates;

    private int number;

    private String url;

    private String username;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getBackupdates() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        if(backupdate != null && backupdates == null){
            return dateFormat.format(backupdate);
        }
        return backupdates;
    }

    public void setBackupdates(String backupdates) {
        this.backupdates = backupdates;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid == null ? null : tid.trim();
    }

    public String getNameurl() {
        return nameurl;
    }

    public void setNameurl(String nameurl) {
        this.nameurl = nameurl == null ? null : nameurl.trim();
    }

//    public String getResponse() {
//        return response;
//    }
//
//    public void setResponse(String response) {
//        this.response = response == null ? null : response.trim();
//    }


    public String getUsertid() {
        return usertid;
    }

    public void setUsertid(String usertid) {
        this.usertid = usertid;
    }

    public Date getBackupdate() {
        return backupdate;
    }

    public void setBackupdate(Date backupdate) {
        this.backupdate = backupdate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}